package com.fruitshop.model;

public class Command {
    private String id;
    private String name;
    private boolean needLogin = true;
    public static final String SCOPE_USER = "user";
    public static final String SCOPE_ADMIN = "admin";
    public static final String SCOPE_ALL = "all";
    private String scope=SCOPE_ALL;

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public Command(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public Command(String id, String name, boolean needLogin) {
        this.id = id;
        this.name = name;
        this.needLogin = needLogin;
    }
    public Command(String id, String name, boolean needLogin,String scope) {
        this.id = id;
        this.name = name;
        this.needLogin = needLogin;
        this.scope=scope;
    }

    public boolean isNeedLogin() {
        return needLogin;
    }

    public void setNeedLogin(boolean needLogin) {
        this.needLogin = needLogin;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
